function [ num, numAbove, numBetween, numBelow ] = getTraitProfile(scores, counts)
%UNTITLED5 Summary of this function goes here
%   Detailed explanation goes here
    hithresh = .9;
    lothresh = .05;
    
    num = 0;
    numAbove = 0;
    numBelow = 0;
    numBetween = 0;
    for i = 1:size(scores, 2)
        if (scores(1, i) > 0)
            num = num + 1;
        end
        if (scores(1, i) > hithresh || (counts(i, 1) * (1 - scores(1, i)) <= 1 && counts(i, 1) > 2))
%             fprintf('i:%d, scores(1, i):%d, counts(i, 1):%d\n', i, scores(1, i), counts(i, 1));
            numAbove = numAbove + 1;
        elseif (scores(1, i) <= lothresh || (scores(1, i) * counts(i, 1) <= 1 && counts(i, 1) > 2))
            numBelow = numBelow + 1;
        elseif (scores(1, i) <= hithresh && scores(1, i) > lothresh)
            numBetween = numBetween + 1;
        else
            fprintf('error: score:%d, count:%d\n', scores(1, i), counts(i, 1));
        end
    end
end

